package my.diplom.dao.service;

import my.diplom.dao.IHostCardDAO;
import my.diplom.entity.HostCard;

/**
 * Created by IntelliJ IDEA.
 * User: gb
 * Date: 21.12.2009
 * Time: 0:29:29
 * To change this template use File | Settings | File Templates.
 */
public class HostCardService {

    private IHostCardDAO hostCardDAO;

    public IHostCardDAO getHostCardDAO() {
        return hostCardDAO;
    }

    public void setHostCardDAO(IHostCardDAO hostCardDAO) {
        this.hostCardDAO = hostCardDAO;
    }

    public void create(HostCard hostCard) {
        hostCardDAO.create(hostCard);
    }

    public void update(HostCard hostCard) {
        hostCardDAO.update(hostCard);
    }

    public HostCard getById(Long hostCardId) {
        return hostCardDAO.getById(hostCardId);
    }
}
